<link rel="stylesheet" href="<?= $this->baseUrl() ?>/css/listing.css" />

<?php
$this->title = "Rincian Keluhan";
$this->headTitle($this->title);
?>
<?php
echo $this->message;
?>

<table>
    <tr><tr>
    <td class="left">Username</td><td class="right"><?php $row=$this->buyer->getBuyer($this->complain['buyer_id']); echo
    $row['username'];?></td>
    </tr><tr>
    <td class="left">Tanggal</td><td  class="right"><?php echo $this->escape($this->complain['time']);?></td>
    </tr><tr>
    <td class="left">Judul</td><td  class="right"><?php echo $this->escape($this->complain['title']);?></td>
    </tr><tr>
    <td class="left">Keluhan</td><td  class="right"><?php echo $this->complain['complain'];?></td>
    </tr>
    <?php
    if($this->complain['status']==1){
    ?>
    <tr>
    <td class="left">Tanggal Terjawab</td><td  class="right"><?php echo $this->escape($this->complain['response']);?></td>
    </tr><tr>
    <td class="left">Jawaban</td><td  class="right"><?php echo $this->escape($this->complain['response_msg']);?></td>
    </tr><tr>
    <td class="left">Yang Menjawab</td><td  class="right"><?php echo $this->escape($this->admin['username']);?></td>
    </tr>
     <tr>
    <td>
               <a class="listed" href="<?php echo $this->url(array("controller"=>"complain","action"=>"list")); ?>">
                      <img class="listed" src="<?php echo $this->baseUrl(); ?>/images/icons/arrow_left.png" alt="edit"/>

                    </a>

                </td><td>
    </td>
    </tr>
    <?php
    }else{
    ?>
    <tr>
       <td> 
               <a class="listed" href="<?php echo $this->url(array("controller"=>"complain","action"=>"list")); ?>">
                      <img class="listed" src="<?php echo $this->baseUrl(); ?>/images/icons/arrow_left.png" alt="edit"/>

                    </a>
                      
               
    </td>

    <td> <div class="add">
                    <a class="listed" href="<?php echo $this->url(array('controller'=>'complain',
            'action'=>'response','id'=>$this->complain['id']));?>">
             Jawab
                    </a>
                </div>
    </td>
    </tr>
    <?php
    }
    ?>
   
</table>